<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>增加赛事评委</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>

</head>
<body>
<!-- 顶部开始 -->
<div th:replace="common::#topbar"></div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<div class="wrapper">
    <!-- 左侧菜单开始 -->
    <div th:replace="common::#leftbar"></div>
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <fieldset class="layui-elem-field layui-field-title site-title">
                <legend><a name="default">设置 [[${comname}]] 赛事评委</a></legend>
            </fieldset>


            <span class="x-right" style="line-height:40px">共有数据：[[${account}]] 条</span>

            <table class="layui-table">
                <thead>
                <tr>
                    <th style="text-align: center">用户编号</th>
                    <th style="text-align: center">用户账户</th>
                    <th style="text-align: center">用户姓名</th>
                    <th style="text-align: center">用户性别</th>
                    <th style="text-align: center">所在单位</th>
                    <th style="text-align: center">用户电话</th>
                    <th style="text-align: center">用户邮箱</th>
                    <th style="text-align: center">设置评委</th>
                </tr>
                </thead>
                <tbody>
                <tr align="center" th:each="user:${users}">
                    <td th:text="${user.id}">用户编号</td>
                    <td th:text="${user.useraccount}">用户账户</td>
                    <td th:text="${user.username}">用户姓名</td>
                    <td th:text="${user.usergender}">用户性别</td>
                    <td th:text="${user.userunit}">所在单位</td>
                    <td th:text="${user.userphone}">用户电话</td>
                    <td th:text="${user.useremail}">用户邮箱</td>
                    <td class="td-manage">
                        <a th:href="@{'/doadd-event-judge?id='+${user.id}}" onclick="return addInfo1()">
                            <i class="layui-icon">&#xe608;</i>添加
                        </a>
                    </td>
                </tr>
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
        </div>
    </div>
    <!-- 右侧主体结束 -->
</div>
<!-- 中部结束 -->
<!-- 底部开始 -->
<div th:replace="common::#bottombar"></div>
<!-- 底部结束 -->
<!-- 背景切换开始 -->
<div th:replace="common::#backbar"></div>
<!-- 背景切换结束 -->
</body>

<script>
    function addInfo1() {
        const r = confirm("确认此评委为赛事评委吗？");
        if (r == true) {
            alert("设置成功");
            return true;
        }
        return false;
    }
</script>
</html>